package com.ss.SmartStock.mapper;

import com.ss.SmartStock.pojo.entity.PriceRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ss.SmartStock.pojo.entity.PriceTypes;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-21
 */
public interface PriceRecordsMapper extends BaseMapper<PriceRecords> {

       @Insert("insert price_records(name,cash_price,point_price) values(#{name},#{cashPrice},#{pointPrice})")
       @Options(useGeneratedKeys = true, keyProperty = "id",keyColumn = "id")
       int insertPriceRecords(PriceRecords priceRecords);
}
